/**
 * 验证类
 */
var Check = {
		/*数字验证*/
		checkNum:function(num) {
			/*数字验证正则*/
			var numPattern = "^[0-9]*$"; 
			var reg = new RegExp(numPattern);
			if(reg.test(num)) 
				return true;
			return false;
		}
		,
		
		/*验证正整数*/
		checkPositiveInt:function(num) {
			var numPattern = "^[1-9][0-9]*$";
			var reg = new RegExp(numPattern);
			if(reg.test(num))
				return true;
			return false;
		}
		,
		/*验证正整数和正浮点数*/
		checkPositiveIntFloat:function(num) {
			var numPattern = "^\\d+(\.\\d+)?$";
			var reg = new RegExp(numPattern);
			if(reg.test(num))
				return true;
			return false;
		}
		,
		/*验证只能有数字，字母和下划线*/
		checkIntAbc:function(str) {
			var numPattern = "^[a-zA-Z0-9_]{0,}$";
			var reg = new RegExp(numPattern);
			if(reg.test(str))
				return true;
			return false;
		}
		,
		/*验证只能有数字，字母及一些特殊字符*/
		checkIntAbcSymbol:function(str) {
			var numPattern = "^[a-zA-Z0-9_*/%&$@#!^-|?]{0,}$";
			var reg = new RegExp(numPattern);
			if(reg.test(str))
				return true;
			return false;
		}
}